package com.qunduikj.sjb.sdk.utils;

import android.app.Activity;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;

/**
 * 动画库方法
 * @author MaTianyu @http://litesuits.com
 * @date 2015-09-16
 */
public class AnimationUtil {
    public static void cornAnim(Activity activity){
        /** 设置旋转动画 */
        final RotateAnimation animation =new RotateAnimation(0f,360f, Animation.RELATIVE_TO_SELF,
                0.5f,Animation.RELATIVE_TO_SELF,0.5f);
        animation.setDuration(3000);//设置动画持续时间
//        image.setAnimation(animation);
        /** 开始动画 */
        animation.startNow();
        animation.start();
    }
}
